<?php


App::import('Lib', 'Routines.URL');

Router::parseExtensions('frame', 'csv', 'html', 'pdf', 'srlz', 'xls', 'xlsx');

Router::connectNamed(array('page', 'model', 'foreign_key'));

Router::connect('/admin/login', array('controller' => 'users', 'action' => 'login', 'admin' => TRUE));
Router::connect('/admin/profile', array('controller' => 'users', 'action' => 'profile', 'admin' => TRUE));
Router::connect('/admin/logout', array('controller' => 'users', 'action' => 'logout', 'admin' => TRUE));

// ignore plugin
Router::connect('/admin/:controller/:action/:id/*', array('admin' => TRUE), array('pass' => array('id')));
Router::connect('/admin/:controller/:action/*', array('admin' => TRUE));
Router::connect('/admin/:controller/*', array('admin' => TRUE));

Router::connect('/admin', array('controller' => 'users', 'action' => 'welcome', 'admin' => TRUE));

Router::connect('/:controller/preview/:id', array('action' => 'view', 'preview' => TRUE), array('pass' => array('id')));

include(CONFIGS . 'urls.php');


?>